package com.aaa.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2022/10/26 14:07
 * @Description
 */
@Controller
@RequestMapping("hello")
@ResponseBody
@Api(tags = "登录模块")
//@CrossOrigin("http://127.0.0.1:8848")
public class HelloController {

    @RequestMapping("world")
    @ApiOperation(value = "Hello World")
    @ApiImplicitParam(name = "name",value = "姓名",required = true)
    public String hello(){
        return "Hello World";
    }
}
